import NewValueListComp from "containers/setting/value-list/new-value-list";
import ValueListComp from "containers/setting/value-list/value-list";
import CustomValueItemDetailComp from "containers/setting/value-list/custom-value-item-detail/custom-value-item-detail";
import NewCustomValueItemComp from "containers/setting/value-list/custom-value-item-detail/new-custom-value-item";

//值列表
const ValueListMenu = {
  key:'value-list',
  url:'/main/setting/value-list',
  components: ValueListComp,
  parent: 'setting',
  fpItem: ["web.new.custom.setting.disabled"],
  fpValue: [[false,undefined]],
  children: {
    //新建值列表
    newValueList: {
      key:'new-value-list',
      url:'/main/setting/value-list/new-value-list',
      components: NewValueListComp,
      parent: 'value-list'
    },
    //值列表详情
    valueListDetail: {
      key:'value-list-detail',
      url:'/main/setting/value-list/value-list-detail/:customEnumerationOID/:customEnumerationID',
      components: NewValueListComp,
      parent: 'value-list'
    },
    // 自定义值列表项详情
    customValueItemDetail: {
      key: 'custom-value-item-detail',
      url: '/main/setting/value-list/value-list-detail/custom-value-item-detail/:customValueItemOID/detail/:customEnumerationOID/:customEnumerationID',
      components: CustomValueItemDetailComp,
      parent: 'value-list-detail',
    },
    // 新增自定义值列表项:编辑自定义值列表项
    newCustomValueItem: {
      key: 'new-custom-value-item',
      url: '/main/setting/value-list/value-list-detail/new-custom-value-item/:customValueItemOID/edit/:customEnumerationOID/:customEnumerationID',
      components: NewCustomValueItemComp,
      parent: 'value-list-detail',
    },
  }
};
export default ValueListMenu;
